package com.marry.business.service.user.impl;

import com.marry.business.repository.user.MenuRepository;
import com.marry.business.service.user.MenuService;
import com.marry.contract.vo.MenuVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

/**
 * @path：com.marry.service.impl.MenuServiceImpl.java
 * @className：MenuServiceImpl.java
 * @description：菜单
 * @author：杨超
 * @dateTime：2020/11/19 15:31
 * @editNote：
 */
@Slf4j
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuRepository menuRepository;

    @Override
    public Flux<MenuVo> getMenuByRoleId(String roleId) {
        return menuRepository.getMenuByRoleId(roleId);
    }

}
